<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>HelloWorld</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>Hello World!</h1>
    <hr>
    <div id="app">
        {{message}}       
        <panda :here="message" made-in="sichang" ></panda>
    </div>

    
    <script type="text/javascript">      

        var app = new Vue({
            el:'#app',
            data:{
                message:'Hello World111!'
            },
            components:{
                "panda" : {
                    template:`
                                <div style="color:blue">我是局部的component;
                                  <p>  panda from {{ here }} </p>
                                  <p>  panda from {{ madeIn }} </p>
                                </div>
                            `
                            ,props:['here' ,'madein']
                }
            }
        })
    </script>
</body>
</html>